package com.coursehub.exercise.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 错题库实体类
 */
@Getter
@Setter
@Entity
@Table(name = "wrong_question_bank")
@NoArgsConstructor
@AllArgsConstructor
public class WrongQuestionBank {
    
    @Id
    @Column(name = "wrong_question_bank_id", nullable = false, length = 100)
    private String wrongQuestionBankId;

    @Column(name = "user_id", nullable = false, length = 100)
    private String userId; // 通过用户管理服务验证

    @Column(name = "course_id", nullable = false, length = 100)
    private String courseId; // 通过课程管理服务验证

    public WrongQuestionBank(String wrongQuestionBankId) {
        this.wrongQuestionBankId = wrongQuestionBankId;
    }
}